﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProcurementManagement.Domain.ProcurementDomain
{
    /// <summary>
    /// 采购合同产品关联表
    /// </summary>
    [SugarTable("SourcProductContract")]
    public class SourcProductContract : Audit
    {
        /// <summary>
        /// 采购合同产品id
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)] // 主键和自增
        public int SourcProductContractId { get; set; }
        /// <summary>
        /// 采购合同编号
        /// </summary>
        public string? PCNumber { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int? ProductId { get; set; }
        /// <summary>
        /// 产品的数量
        /// </summary>
        public int? SPCNum { get; set; }
        /// <summary>
        /// 产品的单价
        /// </summary>
        public decimal? SPCPrice { get; set; }
        /// <summary>
        /// 票据类型
        /// </summary>
        public int? SPCDocumentsType { get; set; }
        /// <summary>
        /// 产品的总金额
        /// </summary>
        public decimal? SPCTotalPrice { get; set; }
        /// <summary>
        /// 优惠后的单价
        /// </summary>
        public decimal? SPCAfterPrice { get; set; }
        /// <summary>
        /// 优惠后的总金额
        /// </summary>
        public decimal? SPCAfterTotalPrice { get; set; }
        /// <summary>
        /// 产品的到货日期
        /// </summary>
        public DateTime? SPCArrivalDate { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string? SPPNumber { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string? SPPName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string? SPPSpec { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        public string? SPCRemark { get; set; }
    }
}
